﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CheckIn
{
    public interface ITimeProvider
    {
        DateTime Now { get; }


    }

    /// <summary>
    /// 提供的是北京时间
    /// </summary>
    public class BeijingTimeProvider : ITimeProvider
    {
        public DateTime Now => new DateTime(DateTime.UtcNow.AddHours(8).Ticks , DateTimeKind.Unspecified );
    }
}
